package library;

public class Book extends Resource {

    public Book(String id, String title) {
        super(id, title);
    }

    @Override
    public void borrow() {
        if (isAvailable()) {
            setAvailable(false);
        }
    }

    @Override
    public void returnResource() {
        setAvailable(true);
    }
}
